<template>
  <div id="app">
    <router-view />
  </div>
</template>

<script>
import { systemInfo } from '@/api/business/buriedPoint'

export default {
  name: 'App',
  created() {
    this.systemInfo()
  },
  methods: {
    systemInfo() {
      systemInfo().then(res => {
        document.title = res.data.systemName

        var link = document.querySelector("link[rel~='icon']");
        if (!link) {
            link = document.createElement('link');
            link.rel = 'icon';
            document.getElementsByTagName('head')[0].appendChild(link);
        }
        link.href = res.data.titleLogo

        this.$store.dispatch('settings/setWangZhan', res.data)
      })
    }
  },
  metaInfo() {
    return {
      title: this.$store.state.settings.dynamicTitle && this.$store.state.settings.title,
      titleTemplate: title => {
        return title ? `${title} - ${process.env.VUE_APP_TITLE}` : process.env.VUE_APP_TITLE
      }
    }
  }
}
</script>

<style lang="scss" >
.el-form--inline .el-form-item {
  margin-right: 28px;
}

// 滚动条样式 ------------------------------------
.el-dialog::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.el-dialog::-webkit-scrollbar-track-piece {
  background-color: transparent; //滚动槽
  -webkit-border-radius: 8px;
}
.el-dialog::-webkit-scrollbar-thumb:vertical {
  height: 8px;
  background-color: #BDBDBD;
  -webkit-border-radius: 8px;
}
.el-dialog::-webkit-scrollbar-thumb:horizontal {
  width: 8px;
  background-color: #BDBDBD;
  -webkit-border-radius: 8px;
}
//滚动条鼠标移上去的样式
.el-dialog::-webkit-scrollbar-thumb:vertical:hover,::-webkit-scrollbar-thumb:horizontal:hover
{
  background-color: #BDBDBD;
}
// 滚动条样式 ------------------------------------


// 滚动条样式-自定义 ------------------------------------
.scrollBorder::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
.scrollBorder::-webkit-scrollbar-track-piece {
  background-color: transparent; //滚动槽
  -webkit-border-radius: 8px;
}
.scrollBorder::-webkit-scrollbar-thumb:vertical {
  height: 8px;
  background-color: #BDBDBD;
  -webkit-border-radius: 8px;
}
.scrollBorder::-webkit-scrollbar-thumb:horizontal {
  width: 8px;
  background-color: #BDBDBD;
  -webkit-border-radius: 8px;
}
//滚动条鼠标移上去的样式
.scrollBorder::-webkit-scrollbar-thumb:vertical:hover,::-webkit-scrollbar-thumb:horizontal:hover
{
  background-color: #BDBDBD;
}
// 滚动条样式-自定义 ------------------------------------

// 推送信息时间轴样式
.el-descriptions-item__label {
  flex-shrink: 0;
}
.el-timeline-item__timestamp {
  font-size: 14px;
  font-weight: 900;
  color: #333;
}
.el-dialog{
  max-height: 88vh;
  overflow-y: auto;
}

// table标签页优化
.table_border{
  height: 28px;
  line-height: 25px;
  border: 1px solid #DCDFE6;
  font-size: 13px;
  // box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1), 0 0 2px rgba(0, 0, 0, 0.1);
  border-radius: 5px;
  overflow: hidden;
  color: rgb(96, 98, 102);
  background-color: #fff !important;
  .table_list{
    cursor: pointer;
    padding: 0 20px;
    // border: 1px solid #333;
    background: #fff;
    border-right: 1px solid #DCDFE6;
    box-sizing: border-box;
    overflow: hidden;
  }
  &:last-child{
    border-right: 0px solid #DCDFE6;
  }
}
.tableActive{
  // background-color: #918EF9 !important;
  // background-color: #918ef9 !important;
  background-color: #6591C9 !important;
  // border-color: #1890ff !important;
  // box-shadow: inset 3px 3px 5px #397dbb, inset -3px -3px 5px #0085ff;
  color: #fff;
}
.table_center{
  padding: 20px 10px;
  border: 1px solid #333;
}

// 全局loading加载
.el-loading-mask {
  background-color: rgba(255, 255, 255, 0.5);
}

// 全局图片预览img大小
.el-image-viewer__canvas{
  >img{
    max-width: 63% !important;
  }
}

// 全局-多选样式-自定义
.checkbox_border{
  .checkbox_list{
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-right: 30px;
    .checkbox_icon{
      margin: 4px 4px 4px 0;
      display: inline-block;
      position: relative;
      border: 1px solid #DCDFE6;
      border-radius: 2px;
      -webkit-box-sizing: border-box;
      box-sizing: border-box;
      width: 14px;
      height: 14px;
      background-color: #FFFFFF;
      .el-icon-check{
        display: block;
        font-size: 12px;
        color: #fff;
      }
    }
    .active_icon{
      background: #918ef9;
      border: 1px solid #918ef9;
      overflow: hidden;
    }
  }
}


// 全局-搜索背景框
// .el-button--primary{
//   background: #918EF9;
//   border: none;
// }

// 全局表格-外边框
.el-table--group, .el-table--border{
  // border: 0.5px solid #D7D7E6;
}
// 全局表格-内边框
.el-table th.el-table__cell.is-leaf, .el-table td.el-table__cell{
  // border: 0.5px solid #D7D7E6;
}

</style>

<style>
.el-tooltip__popper.is-dark{
  max-width: 70% !important;
}
</style>
